<form action="#" method="post" name="#" onsubmit="dmApp.addSave(this); return false;">
<table class="devmod_add_table">
{foreach from=$grid_view_obj item=item key=key}
	{assign var="class" value="{cycle values="dark,bright"}"}
	<tr class="{$class}">
		<td width="140" {if isset($table_struct.$key) and $table_struct.$key == "text"}colspan="2"{/if}>
			<strong>{$this_config.fields.$key}</strong>
			{if isset($this_config.text.$key)}<span class="field-tip"><img src="{$host}{$theme}img/icons/info.png" align="absmiddle" /> {$this_config.text.$key}</span>{/if}
		</td>
			
{if isset($table_struct.$key) and $table_struct.$key == "text"}
	</tr>
	<tr class="{$class}">
{/if}
			
		<td {if isset($table_struct.$key) and $table_struct.$key == "text"}colspan="2"{/if}>
		{if isset($this_config.cast.$key)}
			{$item}
		{else}
			{if isset($this_config.cast_multi_lang) and is_array($this_config.cast_multi_lang)}
				{if $key|array_key_exists:$this_config.cast_multi_lang}
				<div class="devmod_multilang_block">
					<table>
					{foreach from=$_languages item=lang}
						<tr>
							<td valign="top">
								{$lang->name}
							</td>
							<td>
							{if $table_struct.$key == "text"}
								<textarea class="textarea" rows="10" name="{$key}[{$lang->i18n}]" style="height:65px; width:620px;"></textarea>
							{else}
								<input type="text" class="text" name="{$key}[{$lang->i18n}]" value="" />
							{/if}
							</td>
						</tr>
					{/foreach}
					</table>
				</div>
				{else}
					{if $table_struct.$key == "text"}
						<textarea class="textarea" rows="10" name="{$key}"></textarea>
					{else}
						<input type="text" class="text" name="{$key}" value="" />
					{/if}
				{/if}
			{else}
				{if $table_struct.$key == "text"}
					<textarea class="textarea" rows="10" name="{$key}"></textarea>
				{else}
					<input type="text" class="text" name="{$key}" value="" />
				{/if}
			{/if}
		{/if}
		</td>
	</tr>
{/foreach}
	<tr>
		<td colspan="2">
			<input type="submit" name="addGrid" value="Speichern" class="submit" /
		</td>
	</tr>
</table>
</form>
{if isset($tpl_addons) and count($tpl_addons) > 0}
	{foreach from=$tpl_addons item=item key=key}
		{$item}
	{/foreach}
{/if}